home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
USGS: Oil & Gas Fields of Asia Pacific
/
USGS Maps Showing Geology, Oil & Gas Fields of Asia Pacific.iso
/
pc
/
ASPAC
/
VIEWS03
/
SCRIPTS
/
SIZE.AVE
< prev
next >
Wrap
Text File
|
1999-03-10
|
2KB
|
65 lines
' size.ave
' Zooms the view to total extent
' Douglas Steinshouer 11/15/1998
' GeoLukas for USGS GEO CERT World Energy Project
' Thomas Ahlbrandt Project Chief
theView = av.GetActiveDoc
region3 = av.GetProject
east = region3.FindDoc("Plate 1: East Asia Geology, Oil/Gas Fields and Geologic Provinces")
seast = region3.FindDoc("Plate 2: Southeast Asia Geology, Oil/Gas Fields and Geologic Provinces")
aus = region3.FindDoc("Plate 3: Australia and New Zealand Geology, Oil/Gas Fields and Geologic Provinces")
leg = region3.FindDoc("Geologic Legend")
if (theView = east) then
mapzoom = Rect.MakeXY(-3210000,-1610000, 3230000,3400000)
elseif (theView = seast) then
mapzoom = Rect.MakeXY(-5307000,-2775000, 2622000,3935000)
elseif (theView = aus) then
mapzoom = Rect.MakeXY(-4163000,-4317000, 4729000,3184000)
elseif (theView = leg) then
mapzoom = Rect.MakeXY(0,0, 11,8.5)
end
reg3DocWin = theView.GetWin
reg3DocWin.Open
reg3DocWin.Maximize
theView.GetDisplay.ZoomToRect(mapzoom)
if (theView <> leg) then
theTheme = theView.GetThemes.Get(5)
theTheme.GetGraphics.SelectLabels
theTheme.GetGraphics.Invalidate
theView.GetGraphics.ClearSelected
' t = theView.GetThemes
' t2 = t.Get(0)
t2 = theView.GetThemes.Get(0)
t2.SetActive(true)
t2.GetGraphics.SelectLabels
t2.GetGraphics.Invalidate
theView.GetGraphics.ClearSelected
citylabel = Labeler.Make(mapzoom)
citylabel.SetFeatureWeight(#LABEL_WEIGHT_NO)
citylabel.SetLabelWeight(#LABEL_WEIGHT_HIGH)
citysymbol = TextSymbol.Make
citysymbol.SetFont(Font.Make("Univers","Italic"))
citysymbol.SetSize(10)
t2.SetLabelTextSym(citysymbol)
citylabel.Load(t2)
theView.GetAutoLabels(citylabel,true)
ts = theView.GetThemes
for each t in ts
t.SetActive(false)
end
end